<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<script type="text/javascript">
window.onload = function (){
	var aA = document.getElementsByTagName('a');

	//元素.parentNode : 只读 属性 当前节点的父级节点

	for (var i = 0; i < aA.length; i++) {
		aA[i].onclick = function (){
			this.parentNode.style.display = 'none';
		}
	};
}
</script>
<body>
<ul>
	<li>11111 <a href="javascript:;">隐藏</a></li>
	<li>22222 <a href="javascript:;">隐藏</a></li>
	<li>33333 <a href="javascript:;">隐藏</a></li>
	<li>44444 <a href="javascript:;">隐藏</a></li>
</body>
</html>